 app.controller('IndexCtrl', ['$scope','$http', '$modal', function ($scope,$http,$modal) {
        $http({
            method: 'GET',
            url: 'external/diqu.json'          
        }).success(function (data) {
            //console.log(data);
           $scope.division = data;
        }).error(function (data) {
            $scope.authError = data.error.code;           
        })        
        $scope.submit = function () {
            var oo = $scope.oo || {},
                text = (oo.province + oo.city + oo.district) || '请选择地址...';
            alert(text);
        };
    }])